import { createStore } from 'redux'
import reducer from './reducer'

import type { Customization } from './customizationReducer'
import type { User } from './userReducer'
import type { GlobalState } from './globalReducer'

export interface RootState {
  customization: Customization
  user: User
  global: GlobalState
}
// ==============================|| REDUX - MAIN STORE ||============================== //

const store = createStore(reducer)

export { store }
